
book-04:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004005f0 <_init>:
  4005f0:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4005f4:	910003fd 	mov	x29, sp
  4005f8:	94000048 	bl	400718 <call_weak_fn>
  4005fc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400600:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400610 <.plt>:
  400610:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400614:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf6b8>
  400618:	f947fe11 	ldr	x17, [x16, #4088]
  40061c:	913fe210 	add	x16, x16, #0xff8
  400620:	d61f0220 	br	x17
  400624:	d503201f 	nop
  400628:	d503201f 	nop
  40062c:	d503201f 	nop

0000000000400630 <exit@plt>:
  400630:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400634:	f9400211 	ldr	x17, [x16]
  400638:	91000210 	add	x16, x16, #0x0
  40063c:	d61f0220 	br	x17

0000000000400640 <perror@plt>:
  400640:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400644:	f9400611 	ldr	x17, [x16, #8]
  400648:	91002210 	add	x16, x16, #0x8
  40064c:	d61f0220 	br	x17

0000000000400650 <opendir@plt>:
  400650:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400654:	f9400a11 	ldr	x17, [x16, #16]
  400658:	91004210 	add	x16, x16, #0x10
  40065c:	d61f0220 	br	x17

0000000000400660 <__libc_start_main@plt>:
  400660:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400664:	f9400e11 	ldr	x17, [x16, #24]
  400668:	91006210 	add	x16, x16, #0x18
  40066c:	d61f0220 	br	x17

0000000000400670 <readdir@plt>:
  400670:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400674:	f9401211 	ldr	x17, [x16, #32]
  400678:	91008210 	add	x16, x16, #0x20
  40067c:	d61f0220 	br	x17

0000000000400680 <closedir@plt>:
  400680:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400684:	f9401611 	ldr	x17, [x16, #40]
  400688:	9100a210 	add	x16, x16, #0x28
  40068c:	d61f0220 	br	x17

0000000000400690 <__gmon_start__@plt>:
  400690:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400694:	f9401a11 	ldr	x17, [x16, #48]
  400698:	9100c210 	add	x16, x16, #0x30
  40069c:	d61f0220 	br	x17

00000000004006a0 <abort@plt>:
  4006a0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006a4:	f9401e11 	ldr	x17, [x16, #56]
  4006a8:	9100e210 	add	x16, x16, #0x38
  4006ac:	d61f0220 	br	x17

00000000004006b0 <puts@plt>:
  4006b0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006b4:	f9402211 	ldr	x17, [x16, #64]
  4006b8:	91010210 	add	x16, x16, #0x40
  4006bc:	d61f0220 	br	x17

00000000004006c0 <printf@plt>:
  4006c0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006c4:	f9402611 	ldr	x17, [x16, #72]
  4006c8:	91012210 	add	x16, x16, #0x48
  4006cc:	d61f0220 	br	x17

Disassembly of section .text:

00000000004006d0 <_start>:
  4006d0:	d280001d 	mov	x29, #0x0                   	// #0
  4006d4:	d280001e 	mov	x30, #0x0                   	// #0
  4006d8:	aa0003e5 	mov	x5, x0
  4006dc:	f94003e1 	ldr	x1, [sp]
  4006e0:	910023e2 	add	x2, sp, #0x8
  4006e4:	910003e6 	mov	x6, sp
  4006e8:	580000c0 	ldr	x0, 400700 <_start+0x30>
  4006ec:	580000e3 	ldr	x3, 400708 <_start+0x38>
  4006f0:	58000104 	ldr	x4, 400710 <_start+0x40>
  4006f4:	97ffffdb 	bl	400660 <__libc_start_main@plt>
  4006f8:	97ffffea 	bl	4006a0 <abort@plt>
  4006fc:	00000000 	.inst	0x00000000 ; undefined
  400700:	004007cc 	.word	0x004007cc
  400704:	00000000 	.word	0x00000000
  400708:	00400868 	.word	0x00400868
  40070c:	00000000 	.word	0x00000000
  400710:	004008e8 	.word	0x004008e8
  400714:	00000000 	.word	0x00000000

0000000000400718 <call_weak_fn>:
  400718:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf6b8>
  40071c:	f947f000 	ldr	x0, [x0, #4064]
  400720:	b4000040 	cbz	x0, 400728 <call_weak_fn+0x10>
  400724:	17ffffdb 	b	400690 <__gmon_start__@plt>
  400728:	d65f03c0 	ret
  40072c:	00000000 	.inst	0x00000000 ; undefined

0000000000400730 <deregister_tm_clones>:
  400730:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400734:	91018000 	add	x0, x0, #0x60
  400738:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  40073c:	91018021 	add	x1, x1, #0x60
  400740:	eb00003f 	cmp	x1, x0
  400744:	540000a0 	b.eq	400758 <deregister_tm_clones+0x28>  // b.none
  400748:	90000001 	adrp	x1, 400000 <_init-0x5f0>
  40074c:	f9448421 	ldr	x1, [x1, #2312]
  400750:	b4000041 	cbz	x1, 400758 <deregister_tm_clones+0x28>
  400754:	d61f0020 	br	x1
  400758:	d65f03c0 	ret
  40075c:	d503201f 	nop

0000000000400760 <register_tm_clones>:
  400760:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400764:	91018000 	add	x0, x0, #0x60
  400768:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  40076c:	91018021 	add	x1, x1, #0x60
  400770:	cb000021 	sub	x1, x1, x0
  400774:	9343fc21 	asr	x1, x1, #3
  400778:	8b41fc21 	add	x1, x1, x1, lsr #63
  40077c:	9341fc21 	asr	x1, x1, #1
  400780:	b40000a1 	cbz	x1, 400794 <register_tm_clones+0x34>
  400784:	90000002 	adrp	x2, 400000 <_init-0x5f0>
  400788:	f9448842 	ldr	x2, [x2, #2320]
  40078c:	b4000042 	cbz	x2, 400794 <register_tm_clones+0x34>
  400790:	d61f0040 	br	x2
  400794:	d65f03c0 	ret

0000000000400798 <__do_global_dtors_aux>:
  400798:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40079c:	910003fd 	mov	x29, sp
  4007a0:	f9000bf3 	str	x19, [sp, #16]
  4007a4:	b0000093 	adrp	x19, 411000 <exit@GLIBC_2.17>
  4007a8:	39418260 	ldrb	w0, [x19, #96]
  4007ac:	35000080 	cbnz	w0, 4007bc <__do_global_dtors_aux+0x24>
  4007b0:	97ffffe0 	bl	400730 <deregister_tm_clones>
  4007b4:	52800020 	mov	w0, #0x1                   	// #1
  4007b8:	39018260 	strb	w0, [x19, #96]
  4007bc:	f9400bf3 	ldr	x19, [sp, #16]
  4007c0:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4007c4:	d65f03c0 	ret

00000000004007c8 <frame_dummy>:
  4007c8:	17ffffe6 	b	400760 <register_tm_clones>

00000000004007cc <main>:
  4007cc:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  4007d0:	910003fd 	mov	x29, sp
  4007d4:	b9001fa0 	str	w0, [x29, #28]
  4007d8:	f9000ba1 	str	x1, [x29, #16]
  4007dc:	b9401fa0 	ldr	w0, [x29, #28]
  4007e0:	7100081f 	cmp	w0, #0x2
  4007e4:	54000080 	b.eq	4007f4 <main+0x28>  // b.none
  4007e8:	90000000 	adrp	x0, 400000 <_init-0x5f0>
  4007ec:	91246000 	add	x0, x0, #0x918
  4007f0:	97ffff94 	bl	400640 <perror@plt>
  4007f4:	f9400ba0 	ldr	x0, [x29, #16]
  4007f8:	91002000 	add	x0, x0, #0x8
  4007fc:	f9400000 	ldr	x0, [x0]
  400800:	97ffff94 	bl	400650 <opendir@plt>
  400804:	f90017a0 	str	x0, [x29, #40]
  400808:	f94017a0 	ldr	x0, [x29, #40]
  40080c:	f100001f 	cmp	x0, #0x0
  400810:	54000161 	b.ne	40083c <main+0x70>  // b.any
  400814:	f9400ba0 	ldr	x0, [x29, #16]
  400818:	91002000 	add	x0, x0, #0x8
  40081c:	f9400001 	ldr	x1, [x0]
  400820:	90000000 	adrp	x0, 400000 <_init-0x5f0>
  400824:	9124e000 	add	x0, x0, #0x938
  400828:	97ffffa6 	bl	4006c0 <printf@plt>
  40082c:	14000004 	b	40083c <main+0x70>
  400830:	f94013a0 	ldr	x0, [x29, #32]
  400834:	91004c00 	add	x0, x0, #0x13
  400838:	97ffff9e 	bl	4006b0 <puts@plt>
  40083c:	f94017a0 	ldr	x0, [x29, #40]
  400840:	97ffff8c 	bl	400670 <readdir@plt>
  400844:	f90013a0 	str	x0, [x29, #32]
  400848:	f94013a0 	ldr	x0, [x29, #32]
  40084c:	f100001f 	cmp	x0, #0x0
  400850:	54ffff01 	b.ne	400830 <main+0x64>  // b.any
  400854:	f94017a0 	ldr	x0, [x29, #40]
  400858:	97ffff8a 	bl	400680 <closedir@plt>
  40085c:	52800000 	mov	w0, #0x0                   	// #0
  400860:	97ffff74 	bl	400630 <exit@plt>
  400864:	00000000 	.inst	0x00000000 ; undefined

0000000000400868 <__libc_csu_init>:
  400868:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  40086c:	910003fd 	mov	x29, sp
  400870:	a901d7f4 	stp	x20, x21, [sp, #24]
  400874:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf6b8>
  400878:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf6b8>
  40087c:	91374294 	add	x20, x20, #0xdd0
  400880:	913722b5 	add	x21, x21, #0xdc8
  400884:	a902dff6 	stp	x22, x23, [sp, #40]
  400888:	cb150294 	sub	x20, x20, x21
  40088c:	f9001ff8 	str	x24, [sp, #56]
  400890:	2a0003f6 	mov	w22, w0
  400894:	aa0103f7 	mov	x23, x1
  400898:	9343fe94 	asr	x20, x20, #3
  40089c:	aa0203f8 	mov	x24, x2
  4008a0:	97ffff54 	bl	4005f0 <_init>
  4008a4:	b4000194 	cbz	x20, 4008d4 <__libc_csu_init+0x6c>
  4008a8:	f9000bb3 	str	x19, [x29, #16]
  4008ac:	d2800013 	mov	x19, #0x0                   	// #0
  4008b0:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4008b4:	aa1803e2 	mov	x2, x24
  4008b8:	aa1703e1 	mov	x1, x23
  4008bc:	2a1603e0 	mov	w0, w22
  4008c0:	91000673 	add	x19, x19, #0x1
  4008c4:	d63f0060 	blr	x3
  4008c8:	eb13029f 	cmp	x20, x19
  4008cc:	54ffff21 	b.ne	4008b0 <__libc_csu_init+0x48>  // b.any
  4008d0:	f9400bb3 	ldr	x19, [x29, #16]
  4008d4:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4008d8:	a942dff6 	ldp	x22, x23, [sp, #40]
  4008dc:	f9401ff8 	ldr	x24, [sp, #56]
  4008e0:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4008e4:	d65f03c0 	ret

00000000004008e8 <__libc_csu_fini>:
  4008e8:	d65f03c0 	ret

Disassembly of section .fini:

00000000004008ec <_fini>:
  4008ec:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4008f0:	910003fd 	mov	x29, sp
  4008f4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4008f8:	d65f03c0 	ret
